package com.aiit.dao;

import com.aiit.pojo.Patient;
import com.aiit.pojo.User;
import com.sun.org.apache.xpath.internal.compiler.Keywords;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * ClassName:UserDao
 * Package:com.aiit.dao
 * Description:
 *
 * @Date:2020/4/12 14:21
 * @Author:xjs
 */
@Mapper
public interface UserDao {

    List<User> findUserContent();
    List<User> findById(int userid);
    //查询所有病人或导出
    List<Patient> doctorFindPatients();
    int addTotal();
    List<User> search(String action,String keyword);
    User selectName(String username);
    int  userRegist(User user);
    int addUserRole(int userid, int roleid);
    int findNameByid(String username);
    int userRoleId(int userid);
    User getUserByEmail(User user);
    int forgetPwd(User user);



}
